import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import {resolve} from 'path';
import WindiCSS from 'vite-plugin-windicss'

// https://vitejs.dev/config/
export default defineConfig({
    plugins: [vue(), WindiCSS()],
    server: {
        port: 8080,
        host: true,
        proxy: {
            '/api': 'http://192.168.50.47:5245'
        }
    },
    resolve: {
        alias: {
            '@': resolve("./src")
        }
    }
})
